import timeit
data = ''
start_time = timeit.default_timer()
for i in range(5):
    data += str(i) + '\n'

with open('50000.txt', 'w') as f:
    f.write(data)

print('Done!')
end_time = timeit.default_timer()
print(f"代码运行时间（秒）: {end_time - start_time}")
